<template>
    <!-- 用户信息列表 -->
    <el-container>
        <!-- 1-1 页面头部信息 -->
        <el-header class="header-all">
            <!-- 1-1-1。 查询区域 -->
            <div>
                <el-input placeholder="请输入查询的用户姓名" v-model="funame" style="" class="input-name" prefix-icon="el-icon-search"></el-input>
                <el-button type="primary" class="but-select" icon="el-icon-search">搜索</el-button>
            </div>
            <!-- 1-1-2. 功能区域 -->
            <div class="div-header-but">
                <el-button type="primary" plain class="but-select">新增</el-button>
            </div>

        </el-header>
        <!-- 列表区域 -->
        <el-main>
            <el-table :data="userList">
                <el-table-column prop="code" align="left" width="130px" label="人员编号"></el-table-column>
                <el-table-column prop="uname" align="left" width="130px" label="姓名"></el-table-column>
                <el-table-column prop="sex" align="left" width="130px" label="性别"></el-table-column>
                <el-table-column prop="age" align="left" width="130px" label="年龄"></el-table-column>
                <el-table-column prop="shenfen" align="left" width="130px" label="身份证号"></el-table-column>
                <el-table-column prop="ruTime" align="left" width="130px" label="入职日期"></el-table-column>
                <el-table-column prop="cTime" align="left" width="130px" label="创建日期"></el-table-column>
                <el-table-column width="200px" label="操作">
                    <template slot-scope="{}">
                        <el-button type="success" plain class="but-select">编辑</el-button>
                        <el-button type="danger" plain class="but-select">删除</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </el-main>
    </el-container>

    <!-- 模板表单 -->

</template>
<script>
export default{
    name:'empList',
    data(){
        return{
            funame: '',
            userList: [
                {"code":"T20230421","uname":"张三","sex":"男","age":"23","shenfen":"1882939398020","ruTime":"20220101","cTime":"20211212"},
                {"code":"T20230421","uname":"张三","sex":"男","age":"23","shenfen":"1882939398020","ruTime":"20220101","cTime":"20211212"},
            ]
        }
    }
}
</script>

<!-- 1-1-1 开始对应每个控件及页面的样式进行绘制 -->
<style scoped>
.input-name{
    width: 300px;
    margin: 0px;
    padding: 0px;
    size: mini;
}

.but-select{
    margin-left: 5px;
    size: mini;
}
.div-header-but{
    margin-left: 5px;
    margin-right: 20px;
    display: inline;
}

.header-all{
    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
</style>